package com.example.entity;

import com.example.util.CustomDateDeserializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

public class Condition {
    @ApiModelProperty(value = "id")
    public Long id;

    @ApiModelProperty(value = "门店id")
    public String storeId;

    @ApiModelProperty(value = "商品分类id")
    public String productClassId;

    @ApiModelProperty(value = "供应商id")
    public String supplierId;

    @ApiModelProperty(value = "开始时间")
    @JsonDeserialize(using = CustomDateDeserializer.class)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonDeserialize(using = CustomDateDeserializer.class)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date endTime;

    @ApiModelProperty(value = "开始时间2")
    @JsonDeserialize(using = CustomDateDeserializer.class)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date startTimeTwo;

    @ApiModelProperty(value = "结束时间2")
    @JsonDeserialize(using = CustomDateDeserializer.class)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date endTimeTwo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getProductClassId() {
        return productClassId;
    }

    public void setProductClassId(String productClassId) {
        this.productClassId = productClassId;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getStartTimeTwo() {
        return startTimeTwo;
    }

    public void setStartTimeTwo(Date startTimeTwo) {
        this.startTimeTwo = startTimeTwo;
    }

    public Date getEndTimeTwo() {
        return endTimeTwo;
    }

    public void setEndTimeTwo(Date endTimeTwo) {
        this.endTimeTwo = endTimeTwo;
    }
}

